package com.project.bean;

import java.time.LocalDate;
import java.util.List;
/**员工实体类*/
public class StaffBean {
    /**员工id*/
    private int staffId;
    private String name;
    /**生日*/
    private LocalDate birthday;
    /**入职时间*/
    private LocalDate inDate = LocalDate.now();
    /**专长*/
    private String expertise;
    private String state = "在职";
    /**工资*/
    private int salary;
    /**头像*/
    private String image;
    private String phone;

    /**项目进度实体集合*/
    private List<ProgressBean> progbean;

    public StaffBean() {
    }

    public StaffBean(String name, LocalDate birthday,
                     String expertise, int salary, String image, String phone) {
        this.name = name;
        this.birthday = birthday;
        this.expertise = expertise;
        this.salary = salary;
        this.image = image;
        this.phone = phone;
    }

    public int getStaffId() {
        return staffId;
    }

    public void setStaffId(int staffId) {
        this.staffId = staffId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public LocalDate getBirthday() {
        return birthday;
    }

    public void setBirthday(LocalDate birthday) {
        this.birthday = birthday;
    }

    public LocalDate getInDate() {
        return inDate;
    }

    public void setInDate(LocalDate inDate) {
        this.inDate = inDate;
    }

    public String getExpertise() {
        return expertise;
    }

    public void setExpertise(String expertise) {
        this.expertise = expertise;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public int getSalary() {
        return salary;
    }

    public void setSalary(int salary) {
        this.salary = salary;
    }

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public List<ProgressBean> getProgbean() {
        return progbean;
    }

    public void setProgbean(List<ProgressBean> progbean) {
        this.progbean = progbean;
    }

    @Override
    public String toString() {
        return "StaffBean{" +
                "staffId=" + staffId +
                ", name='" + name + '\'' +
                ", birthday=" + birthday +
                ", inDate=" + inDate +
                ", expertise='" + expertise + '\'' +
                ", state='" + state + '\'' +
                ", salary=" + salary +
                ", image='" + image + '\'' +
                ", phone='" + phone + '\'' +
                ", progbean=" + progbean +
                "}\n";
    }
}
